import React, {Component} from 'react';
import {Link,NavLink} from "react-router-dom";

class Page extends Component {

  render() {
    console.log(this.props.location);
    return (
      <div>
        <h1>Page</h1>
        <button onClick={()=>{
          this.props.history.push('/home');
        }}>跳转到Home</button>
        <button onClick={()=>{
          this.props.history.push('/me');
        }}>跳转到ME</button>
        <Link to={'/me'}>跳转到ME</Link>
      </div>
    );
  }
}

export default Page;
